all files / picker/ picker.vue

66.67% Statements 6/9
100% Branches 4/4
25% Functions 1/4
40% Lines 2/5
1 branch Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40                1×                                                              
//
//
//
//
//
//
//
 
import pickerSlot from './picker-slot'
export default {
  name: 'mu-picker',
  props: {
    visibleItemCount: {
      type: Number,
      default: 5
    },
    values: {
      type: Array,
      default () {
        return []
      }
    },
    slots: {
      type: Array,
      default () {
        return []
      }
    }
  },
  methods: {
    change (index, args) {
      this.$emit('change', args[0], index)
    }
  },
  components: {
    'picker-slot': pickerSlot
  }
}